<template>
  <van-list
      :finished="finished"
      finished-text="没有更多了"
  >
    <van-cell v-for="item in listArr" :key="item" :title="item" @click="cellClick(item)"/>
  </van-list>
</template>

<script>
export default {
name: "List",
  props:{
    listArr:{
      type:Array,
      default:[]
    }
  },
  data(){
  return {
    finished:true
  }
  },
  methods:{
    cellClick(item){
      this.$emit('cellClick',item)
    }
  }
}
</script>

<style scoped>

</style>